public class ClassBeforeRecord {

  class InnerA<caret>

    record InnerB() {
  }
}